#ifndef _OC_RadarSampler_H__
#define _OC_RadarSampler_H__

#include "VolumeObject.h"
#include "VolumeGridData.h"

namespace OCPP
{
    namespace Volume
    {
        class _volumeExport RadarSampler
        {
        public:
            RadarSampler();
            ~RadarSampler();

            void setRadius(int radius) 
            {
                _radius = radius;
                _imageWidth = _imageHeight = 2 * radius;
            }

            void setValue(int layer, int angle,int dis, uint8 value);
            void setValue(int layer, int angle,int dis, uint16 value);

            int _radius = 0;
            int _imageWidth = 0, _imageHeight = 0;
            VolumeGridData _data;
        };
    }
}

#endif // !_OC_VOLUME_SWAN_H__




